Skip to content

Conversation

@VincentLanglet
Copy link
Contributor

Closes phpstan/phpstan#13775

(In my understanding)

@staabm
Copy link
Contributor

staabm commented Feb 11, 2026

this seems to also affect phpstan/phpstan#12123 in which ondrej suggested to use a operator overloading extension.

@@ -0,0 +1,34 @@
<?php declare(strict_types = 1);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

issue 13775 also talks about array_sum which is not yet covered in tests

@staabm
Copy link
Contributor

staabm commented Feb 11, 2026

in phpstan/phpstan#13775 (comment) there is a php version difference mentioned. should this also be taken into account here?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Detect array_sum|product array elements of castable/non-castable types

2 participants